$(document).ready(function(){
	
	$('#newDirFormCNFP').submit(function(){
		if(jQuery.trim($('#dirNameCNFP').val())==''){
			Edushare.FunctionalTextFields.SetError('Error: Folder name is required.');
			return false;
		}else if($('#dirNameCNFP').val().length>200){
			Edushare.FunctionalTextFields.SetError('Error: Folder name is too long.');
			return false;
		}
		return true;
	});
	
	
});